<div class="content-form edit-aluno">
    <?php echo $this->partial('aluno/menu.phtml', array('urlbase'=>$this->urlbase,'urlfoto'=>$this->urlfoto,'modulo'=>$this->modulo,'controller' => $this->controller, 'action' => $this->action, 'data' => $this->data)); ?>
    
    <div class="content-list row_bc">
        
        <div class="content-form-top">
        
            <h2><?php echo $this->Menualuno_nom[$this->action];?></h2>

            <div class="content-tl-btn">
                <span>Nova</span> <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'boletimdesempenho', 'id' => $this->data['ALU_ID'], 'op' => 'edit')); ?>" class="add_op">+</a>
            </div>
        </div>
        
        <table id="tlist">
            <thead>
                <tr>
                    <th>Instituição de Ensino</th>
                    <th>Prova</th>
                    <th>Ano</th>
                    <th>Semestre</th>
                    <th class="bc">&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($this->result as $row){ ?>
                <tr>
                    <td><?php echo $row['FAC_NOM']; ?></td>
                    <td><?php echo $row['FAP_NOM']; ?></td>
                    <td><?php echo $row['BTD_ANO']; ?></td>
                    <td><?php echo $row['BTD_SEM']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'boletimdesempenho', 'id' => $row['ALU_ID'],'btd_id' => $row['BTD_ID'], 'op'=>'edit')); ?>">Editar</a><?php }?>
                        <?php if($this->per_del){?><a class="btn-pdr" onclick="if(confirm('Tem certeza que deseja apagar?')) location.href='<?php echo $this->url(array('controller' => $this->controller, 'action' => 'boletimdesempenho', 'id' => $row['ALU_ID'],'btd_id' => $row['BTD_ID'], 'op'=>'delete')); ?>';">Deletar</a><?php }?>
                    </td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>